<?php
/*
Plugin Name: Share
Description:  让用户推荐你的博客文章到微博
Version: 1.0beta
*/

js_enqueue(PLUGIN_URL.'share/js/share');
js_enqueue(PLUGIN_URL.'share/js/hover_menu');
css_enqueue(PLUGIN_URL.'share/css/hover_menu');

function share_to_platform()
{
?>
    <script type="text/javascript">
     $(function(){
         $("#share_to_platform").hoverMenu("#share_to_platform_menu");
     });
   </script>
<?php 	
	$CI =& get_instance();
	echo $CI->load->view('share_menu',null,TRUE,'share');	
}
add_action('in_topnav_item','share_to_platform');
?>